package com.xiaomi.pojo;

import org.springframework.context.annotation.ComponentScan;

@ComponentScan
public class GoodsType {
	private int id;
	private String name;
	private int level;
	private int parent;
	private String parentName;

	public String getParentName() {
		return parentName;
	}

	@Override
	public String toString() {
		return "GoodsType{" +
				"id=" + id +
				", name='" + name + '\'' +
				", level=" + level +
				", parent=" + parent +
				", parentName='" + parentName + '\'' +
				'}';
	}

	public GoodsType(int id, String name, int level, int parent, String parentName) {
		this.id = id;
		this.name = name;
		this.level = level;
		this.parent = parent;
		this.parentName = parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public GoodsType() {
		// TODO Auto-generated constructor stub
	}

	public GoodsType(int id, String name, int level, int parent) {
		super();
		this.id = id;
		this.name = name;
		this.level = level;
		this.parent = parent;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getParent() {
		return parent;
	}

	public void setParent(int parent) {
		this.parent = parent;
	}

}
